import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'CommandCenter',
    component: () => import('@/views/CommandCenter.vue'),
    meta: {
      title: '指挥大屏',
      icon: 'command'
    }
  },

]
const router = createRouter({
  history: import.meta.env.VITE_APP_ROUTE_MODE == 'hash' ? createWebHashHistory() : createWebHistory(),
  routes
})

export default router 